<<<<<<< HEAD
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	
	request.setCharacterEncoding("UTF-8");
	response.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
		<base href="<%=basePath%>">
	</head>
	<body>
		Hello world!
		<br/>
	<!-- 	<img src="/tsjyFile/imgFile/20180420170155614.jpg"> -->
		<!-- <video src="/tsjyFile/musicFile/20180420165132476.kux" ></video> -->
		<form action="common/uploadOssPic" method="post" enctype="multipart/form-data">
		选择文件：<input type="file" name="imgFile" multiple="multiple"/><br/>
		<input type="submit" value="上传"/>
		
		</form>
		<!-- <form action="uploadFile" method="post" enctype="multipart/form-data">
		选择文件：<input type="file" name="musicFile"/><br/>
		<input type="submit" value="上传"/> -->
		
		</form>
		<!-- <form action="user/add" method="post" enctype="application/x-www-form-urlencoded">
		用户名：<input type="text" placeholder="请输入姓名" name="username" required   id="username" value="fsdfad">
		密码：<input id="password" name="password" type="password" value="123456ss"/><br/>
		手机号：<input id="phone" name="phone" type="text" value="sdfgghghhhh" />
			<input type="submit" value="submit"/>
		</form> -->
		<!-- <form action="news/add" method="post" enctype="multipart/form-data">
	 		<input name="category" type="text" value="1" />
	 		<input name="titile" type="text" value="666666" />
	 		<input name="type" type="text" value="社会" />
	 		<input name="newsText" type="text" value="个梵蒂冈地方好地方" />
	 		<input name="imgFile" type="file"/>
			 <input type="submit" value="newsAdd"/>
		</form> -->
		
		<!-- <button  id='register'>注册调试</button>
		 <button onclick="login()">登录调试</button>
		 <button onclick="queryNews()">查询调试</button> -->
		<!-- <button  onclick="newsAdd()" >news添加</button> -->
		<!-- <button onclick="login()">登录调试</button>
		<button  id='register'>注册调试</button>
		<button onclick="newAdd()">新闻添加</button>
		<button onclick="uploadBase64()">采集人像</button> -->
		<br/>
	
	</body>
</html>
<script type="text/javascript" src="statics/script/jquery.min.js"></script>
		<script type="text/javascript">
		
		/* $(document).ready(function(){
			  $("button").click(function(){
			    alert("Value: " + $("#test").val());
			  });
			  
			   contentType:"application/json",  
			}); */
			
			
			/* function queryNews(){
				$.ajax( {
					type : "get",
					url : 'news/query',
					data: "category=1&pageSize=2&current=1",
					success : function(response) {
						//alert(1111);
						alert(response);
						console.log(response);
						
					},
					error : function() {
						alert('服务器繁忙，请稍后再试');
					}
				});
				
				
				
			}
		 function login(){
				
				var data = {username:"mykjs",password:"123456ss"};
				$.ajax( {
					type : "POST",
					url : 'login',
					data: JSON.stringify(data),
					 contentType:"application/json",  
					success : function(response) {
						//alert(1111);
						alert(response);
						console.log(response);
						
					},
					error : function() {
						alert('服务器繁忙，请稍后再试');
					}
				});
				
				
			} 
			
			
			
			  $("#register").click(function(){
				  var username= $("#username").val;
				  
				  alert(typeof username);
					console.log(username);
					var password=  $("#password").val;
					alert(username);
					var phone=  $("#phone").val;
					alert(phone);
					 var data = {username:"ldsmmd",password:"123456ss",phone:"1234568935"};
					alert(1111);
					$.ajax( {
						type : "POST",
						url : 'user/add',
						data: JSON.stringify(data),
						 contentType:"application/json",  
						success : function(response) {
							//alert(1111);
							alert(response);
							console.log(response);
							
						},
						error : function() {
							alert('服务器繁忙，请稍后再试');
						}
					});
			  }); */
		
		
		
		</script>
=======
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	
	request.setCharacterEncoding("UTF-8");
	response.setCharacterEncoding("UTF-8");
%>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>Insert title here</title>
		<base href="<%=basePath%>">
	</head>
	<body>
		Hello world!
		<br/>
	<!-- 	<img src="/tsjyFile/imgFile/20180420170155614.jpg"> -->
		<!-- <video src="/tsjyFile/musicFile/20180420165132476.kux" ></video> -->
		<form action="common/uploadOssPic" method="post" enctype="multipart/form-data">
		选择文件：<input type="file" name="imgFile" multiple="multiple"/><br/>
		<input type="submit" value="上传"/>
		
		</form>
		<!-- <form action="uploadFile" method="post" enctype="multipart/form-data">
		选择文件：<input type="file" name="musicFile"/><br/>
		<input type="submit" value="上传"/> -->
		
		</form>
		<!-- <form action="user/add" method="post" enctype="application/x-www-form-urlencoded">
		用户名：<input type="text" placeholder="请输入姓名" name="username" required   id="username" value="fsdfad">
		密码：<input id="password" name="password" type="password" value="123456ss"/><br/>
		手机号：<input id="phone" name="phone" type="text" value="sdfgghghhhh" />
			<input type="submit" value="submit"/>
		</form> -->
		<!-- <form action="news/add" method="post" enctype="multipart/form-data">
	 		<input name="category" type="text" value="1" />
	 		<input name="titile" type="text" value="666666" />
	 		<input name="type" type="text" value="社会" />
	 		<input name="newsText" type="text" value="个梵蒂冈地方好地方" />
	 		<input name="imgFile" type="file"/>
			 <input type="submit" value="newsAdd"/>
		</form> -->
		
		<!-- <button  id='register'>注册调试</button>
		 <button onclick="login()">登录调试</button>
		 <button onclick="queryNews()">查询调试</button> -->
		<!-- <button  onclick="newsAdd()" >news添加</button> -->
		<!-- <button onclick="login()">登录调试</button>
		<button  id='register'>注册调试</button>
		<button onclick="newAdd()">新闻添加</button>
		<button onclick="uploadBase64()">采集人像</button> -->
		<br/>
	
	</body>
</html>
<script type="text/javascript" src="statics/script/jquery.min.js"></script>
		<script type="text/javascript">
		
		/* $(document).ready(function(){
			  $("button").click(function(){
			    alert("Value: " + $("#test").val());
			  });
			  
			   contentType:"application/json",  
			}); */
			
			
			/* function queryNews(){
				$.ajax( {
					type : "get",
					url : 'news/query',
					data: "category=1&pageSize=2&current=1",
					success : function(response) {
						//alert(1111);
						alert(response);
						console.log(response);
						
					},
					error : function() {
						alert('服务器繁忙，请稍后再试');
					}
				});
				
				
				
			}
		 function login(){
				
				var data = {username:"mykjs",password:"123456ss"};
				$.ajax( {
					type : "POST",
					url : 'login',
					data: JSON.stringify(data),
					 contentType:"application/json",  
					success : function(response) {
						//alert(1111);
						alert(response);
						console.log(response);
						
					},
					error : function() {
						alert('服务器繁忙，请稍后再试');
					}
				});
				
				
			} 
			
			
			
			  $("#register").click(function(){
				  var username= $("#username").val;
				  
				  alert(typeof username);
					console.log(username);
					var password=  $("#password").val;
					alert(username);
					var phone=  $("#phone").val;
					alert(phone);
					 var data = {username:"ldsmmd",password:"123456ss",phone:"1234568935"};
					alert(1111);
					$.ajax( {
						type : "POST",
						url : 'user/add',
						data: JSON.stringify(data),
						 contentType:"application/json",  
						success : function(response) {
							//alert(1111);
							alert(response);
							console.log(response);
							
						},
						error : function() {
							alert('服务器繁忙，请稍后再试');
						}
					});
			  }); */
		
		
		
		</script>
>>>>>>> 76b6f31bbcbec31ccfa63ebf7ff5aeaf5445e070
